import request from '@/utils/request'
// 列表
// type:1
// is_bind:0
// keyword:
// per_page:10
// page:1
export function search(query) {
  return request({
    url: '/admin/userDatabase/search',
    method: 'get',
    params: query
  })
}
// 添加
export function addData(data) {
  return request({
    url: '/admin/userDatabase/addData',
    method: 'post',
    data
  })
}
// 删除
export function deleteData(id) {
  return request({
    url: '/admin/userDatabase/deleteData',
    method: 'post',
    data: { id
    }
  })
}
export function searchBefore() {
  return request({
    url: '/admin/userDatabase/searchBefore',
    method: 'post'
  })
}

